package cn.com.mall.product.service;

import cn.com.mall.common.utils.R;
import cn.com.mall.product.entity.AttrAttrgroupRelationEntity;
import cn.com.mall.product.vo.AttrResVo;
import cn.com.mall.product.vo.AttrVO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.com.mall.common.utils.PageUtils;
import cn.com.mall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author yangwen
 * @email yangwen@servyou.com.cn
 * @date 2020-04-09 23:52:34
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void save(AttrVO attr);

    PageUtils queryPage(Map<String, Object> params, Long attrId, Long attrType);

    AttrResVo getAttrInfoById(Long attrId);

    void updateAttr(AttrVO attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils noattrRelation(Map<String, Object> params, String attrgroupId);

    List<Long> selectSerchAttrIds(List<Long> attrIds);
}

